<?php




class Update_record extends CI_Controller {

	public function __construct() {
		parent::__construct(); 
	}

	public function index() {
		//$this->load->view('testing/placeholder_view');
                
                        $user_id = '1';
                
                        // get an object by ID
                        //$user = $this->doctrine->em->find('ORM\Testing\User', $user_id);
                        $user = $this->doctrine->em->find('ORM\Dynasties2\Users', $user_id);
                        //echo $user->getfirst_Name().' '.$user->getlastname().' is a real chill guy.<br />';
                        $user = $user->setFirstName('Jeremiah');
                        $this->doctrine->em->persist($user);
                        $this->doctrine->em->flush();
                        


        }
}

